<template>
    <el-tag :type="status ? 'primary' : 'danger'">{{ status ? trueText : falseText }}</el-tag>
</template>

<script>
    export default {
        name: "index",
        props: {
            status: [String, Number],
            trueText: {
                type: String,
                default: '正常'
            },
            falseText: {
                type: String,
                default: '禁用'
            },
        },
    }
</script>

<style scoped>

</style>
